package com.njtoyo.taxi.admin.rest.wrapper.business.operation_rule;

import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.util.Date;

@Data
public class InformationServiceFeeWrapper {

    private Long id;


    private Long driverRegionId;


    private String startTime;

    private String endTime;


    private RealTime realtime;

    private Appointment appointment;

    @Data
    @Accessors(chain = true)
    public static class RealTime {
        private PeakHour peakHour;

        private NormalHour normalHour;

        @Data
        @Accessors(chain = true)
        public static class PeakHour {
            private Double perFee;

            private Double maxFee;

            private TimeDomain[] period;

            @Data
            @Accessors(chain = true)
            public static class TimeDomain {
                private String startTime;

                private String endTime;

            }
        }


        @Data
        @Accessors(chain = true)
        public static class NormalHour {
            private Double perFee;

            private Double maxFee;
        }
    }

    @Data
    @Accessors(chain = true)
    public static class Appointment {
        private Double fee;

        private Double driver_earning_ratio;
    }

}
